package UDP.sever;

import java.io.IOException;
import java.net.*;
import java.util.Scanner;

public class send {
    public static void main(String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        DatagramSocket ds = new DatagramSocket();
        while (true) {
            String s = sc.nextLine();
            if (s.equals("886")) {
                break;
            }
            byte[] a = s.getBytes();
            InetAddress address = InetAddress.getByName("192.168.0.8");
            int port = 10000;
            DatagramPacket dp = new DatagramPacket(a, a.length, address, port);
            ds.send(dp);
        }
        ds.close();


    }


}
